package com.kun.req;


import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @className: MemberLoginReq
 * @Description: ...
 * @author: kunkun
 * @date: 2025/7/10 13:23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MemberLoginReq {
    @NotBlank(message = "Mobile不能为空")
    @Pattern(regexp = "^1\\d{10}$",message = "手机号码格式错误")
    String mobile;

    @NotBlank(message = "短信验证码不能为空")
    String code;
}

